package com.mc.utils;

import java.util.List;

import com.mc.model.newsandbulletin;
import com.mc.service.NewsandbulletService;

public class Nbutils {

	private static Nbutils nbutil=new Nbutils();
    private Nbutils(){}
    public static Nbutils getInstance()
    {
    	if(nbutil==null)
    	{
    		nbutil=new Nbutils();
    	}
    	return nbutil;
    }
    public List<newsandbulletin> getnbbytype(NewsandbulletService newsandbulletService,
    		int pagenow,int pagesize,String type,int kind){
    	List<newsandbulletin> pnewses=newsandbulletService.selectnbbytype(type,kind,(pagenow-1)*pagesize, pagesize);
    	return pnewses;
    }
    
}
